package com.ittest;


import com.ittest.bean.CartooCatAndMouse;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

@SpringBootApplication(excludeName = "org.springframework.boot.autoconfigure.context.LifecycleAutoConfiguration")
@Import(CartooCatAndMouse.class)
public class App {

    public static void main(String[] args){
        ConfigurableApplicationContext ctx = SpringApplication.run(App.class);
        CartooCatAndMouse bean = ctx.getBean(CartooCatAndMouse.class);
        bean.play();
    }
}
